import {baseRequest} from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/port-group/` + url, ...arg)



export default {
	async fetchList(query) {
		return await request('page', query, 'get')
	},
    async portGroupList() {
		return await request('list', {}, 'get')
	},
    async updateEnableStatus(id, enable) {
		return await request('update/enable-status', {id,enable}, 'post')
	},
    async createPortGroup(data) {
		return await request('create', data, 'post')
	},
    async deleteGroup(id) {
		return await request('delete', {id}, 'post')
	},
}
